package cn.zf233.springsecurityjwt.service;

import cn.zf233.springsecurityjwt.entity.User;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * Created by zf233 on 2021/7/12
 */
@Service
public interface UserService {

    User getUserById(Long id);

    User getUserByUsername(String username);

    User getUserByPhone(String phone);

    User getUserByOpenId(String openId);

    Set<String> getRoleByUserId(Long userId);

    Set<String> getPermissionByUserId(Long userId);

    String getVCodeByPhone(String phone);

    List<User> list();
}
